sysroot: Clean up API
authorColin Walters <walters@verbum.org>
Mon, 16 Sep 2013 13:13:58 +0000 (09:13 -0400)
committerColin Walters <walters@verbum.org>
Mon, 16 Sep 2013 22:32:13 +0000 (18:32 -0400)
commit8f1ea1b50aad70f671b8a2902f4b68771cce8682
tree8934b8aa6e8a34ddb0ce3ac729e8dda694d41ace
parentc07c84cb6f17d2c709897188c2f7e46164636c30
sysroot: Clean up API

Now that we have a real GObject for the sysroot, we have a convenient
place to keep track of 4 pieces of state:

* The current deployment list
* The current bootversion
* The current subbootversion
* The current booted deployment (if any)

Avoid requiring callers to pass all of this around and load it
piecemeal; instead the new thing is ostree_sysroot_load().
14 files changed:
doc/ostree-sections.txt
src/libostree/ostree-sysroot-cleanup.c
src/libostree/ostree-sysroot-deploy.c
src/libostree/ostree-sysroot-private.h
src/libostree/ostree-sysroot.c
src/libostree/ostree-sysroot.h
src/ostree/ot-admin-builtin-cleanup.c
src/ostree/ot-admin-builtin-deploy.c
src/ostree/ot-admin-builtin-diff.c
src/ostree/ot-admin-builtin-status.c
src/ostree/ot-admin-builtin-undeploy.c
src/ostree/ot-admin-builtin-upgrade.c
src/ostree/ot-admin-functions.c
src/ostree/ot-admin-functions.h